import java.util.Scanner;
public class Task18 {
	
	public static boolean isTriangle(int array[]){
		boolean flag = true;
		
		
		if((array[0] + array[1]) < array[2])
			flag = false;
		
		if((array[1] + array[2]) < array[0])
			flag = false;
		
		if((array[0] + array[2]) < array[1])
			flag = false;
		
		return flag;
		
	}
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] array = new int[3];
		int perimeter = 0;
		for(int i=0;i<3;i++){
			array[i] = sc.nextInt();
		}
		if(!isTriangle(array))
			System.out.println("This is not a triangle");
		
		while(isTriangle(array)){
			perimeter = 0;
			for(int i=0;i<3;i++){
				perimeter += array[i];
				array[i] = sc.nextInt();
			}
		}
		System.out.println("The perimeter of the last triange is: " + perimeter);
		sc.close();
		
	}

}
